<?php
class Image {
	private $itemID = "";
	private $filename = "";
	private $authorname = "";
	private $authoremail = "";
	private $thumbname = "";
	private $caption = "";
	private $comments = array();

	/**
	 * FIX ME
	 * 
	 * @param unknown_type $itemID
	 * @param unknown_type $filename
	 * @param unknown_type $thumbname
	 * @param unknown_type $caption
	 * @param unknown_type $comments
	 */
	public function __construct($itemID, $authorname, $authoremail, $filename, $thumbname, $caption, $comments) {
		$this->itemID = $itemID;
		$this->authorname = $authorname;
		$this->authoremail = $authoremail;
		$this->filename = $filename;
		$this->thumbname = $thumbname;
		$this->caption = $caption;
		$this->comments = $comments;
	}
	
	/**
	 * FIX ME
	 * @param unknown_type $comment
	 */
	public function addComment($comment){
		$this->comments[] = $comment;
	}
	
	public function getAuthorName() {
		return $this->authorname;
	}
	
	public function getAuthorEmail() {
		return $this->authoremail;
	}

	/**
	 * FIX ME
	 */
	public function getCaption() {
		return ($this->caption != null) ? $this->caption : "";
	}

	/**
	 * FIX ME
	 */
	public function getComments() {
		return ($this->comments != null) ? $this->comments : "";
	}

	/**
	 * FIX ME
	 */
	public function getFilename(){
		return ($this->filename != null) ? $this->filename : "";
	}

	/**
	 * FIX ME
	 */
	public function getItemID(){
		return $this->itemID;
	}

	/**
	 * FIX ME
	 */
	public function getThumbname(){
		return ($this->thumbname != null) ? $this->thumbname : "";
	}
}
